<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
    <title>订单核销</title>
    <link rel="stylesheet" type="text/css" href="../../js/vant/index.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui/aui_flex.css" />
    <link rel="stylesheet" type="text/css" href="../../css/main.css" /> 
    
    <link rel="stylesheet" type="text/css" href="../../css/order/order_confirm.css" /> 
</head>

<body>
    <div id="order_id">
        <header class="header-main">
            <van-nav-bar title="订单核销"></van-nav-bar>
        </header>
        
        <div class="detail-info main-body">   
            <div class="aui-flex-col aui-flex-middle top-tab">    
            	<div class="aui-flex-item-12 input-bar">
	        		<input type="text" class="input-item" placeholder="请输入要搜索的企业名" v-model="enterName"  v-on:input="getDataListHttp"/>
					<div class="stock-tips" v-if="pickedEnter">当前企业库存：<font class="stock-num">{{stockNum}}</font></div>
				</div>
	        	<div class="enter-list">
	        		<div class="enter-list-item" v-for="(el,index) in enterList" @click="pickEnter(index)">
	        			<div class="name">{{el.name}}{{index}}</div>
	        			<div class="info">{{el.fzrName}} {{el.fzrTel}}</div>
	        		</div>
	        	</div>
	        	<div class="aui-flex-item-10 input-bar">
					<input type="text" class="input-item" placeholder="请输入要核销的客户手机号" v-model="phoneNum"/>
	        	</div>
	        	<div class="aui-flex-item-2">
	        		<div class="search-btn" onclick="initOrderList()">搜索</div>
	        	</div>			
            </div>
            <div class="order-list-content">
                <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
                    <van-list
                        v-model="loading"
                        :finished="finished"
                        finished-text="没有更多了"
                        @load="onLoad">
                        <div class="aui-flex-col aui-flex-middle card-item" v-for="(li,index) in orderList">     
                        	<div class="aui-flex-item-10">
                        		<div class="aui-flex-col aui-flex-middle">     
		                        	<div class="aui-flex-item-4 list-item-title">活动名称：</div>
		                        	<div class="aui-flex-item-8">{{li.actName}}</div>
                        		</div>
								<div class="aui-flex-col aui-flex-middle">
									<div class="aui-flex-item-4 list-item-title">金额：</div>
									<div class="aui-flex-item-8">{{li.amount}}元</div>
								</div>
                        		<div class="aui-flex-col aui-flex-middle">
		                        	<div class="aui-flex-item-4 list-item-title">姓名：</div>
		                        	<div class="aui-flex-item-8">{{li.customerName}}</div>
                        		</div>
                        		<div class="aui-flex-col aui-flex-middle">
		                        	<div class="aui-flex-item-4 list-item-title">手机号码：</div>
		                        	<div class="aui-flex-item-8">{{li.mobile}}</div>
                        		</div>
                        		<div class="aui-flex-col aui-flex-middle">
		                        	<div class="aui-flex-item-4 list-item-title">订单编号：</div>
		                        	<div class="aui-flex-item-8">{{li.mOrderId}}</div>
                        		</div>
								<div class="aui-flex-col aui-flex-middle">
									<div class="aui-flex-item-4 list-item-title">商户号：</div>
									<div class="aui-flex-item-8">{{li.posNo}}</div>
								</div>
								<div class="aui-flex-col aui-flex-middle" v-if="li.bankCardNo">
									<div class="aui-flex-item-4 list-item-title">付款账号：</div>
									<div class="aui-flex-item-8">{{li.bankCardNo}}</div>
								</div>
                        		<div class="aui-flex-col aui-flex-middle" v-if="li.hxTime">
		                        	<div class="aui-flex-item-4 list-item-title">核销时间：</div>
		                        	<div class="aui-flex-item-8">{{li.hxTime}}</div>
                        		</div>
                        	</div>
                        	<div class="aui-flex-item-2">
                        		<div class="check-btn" v-if="!li.hxTime" @click="checkOrder(index)">核销</div>
                        		<div class="checked-btn" v-else>已核销</div>
                        	</div>

                        </div>
                    </van-list>
                </van-pull-refresh>
            </div>
        </div>
        </template>
    </div>
</body>
<script type="text/javascript" src="../../js/jquery/jquery320min.js"></script> 
<script type="text/javascript" src="../../js/vant/vuemin.js"></script>
<script type="text/javascript" src="../../js/vant/vantmin.js"></script>
<script type="text/javascript" src="../../js/packajax.js"></script>
<script type="text/javascript" src="../../js/order/order_confirm1.js"></script>
</html>